package com.xuhuan.practice.service;

import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author: huan.xu
 * @create: 2024/6/12 10:50
 * @description: oss接口
 **/
public interface OSSService {

  /**
   * 上传文件
   * @param file
   * @return
   */
  String upload(MultipartFile file);

  /**
   * 下载
   * @param storagePath
   * @param request
   * @param response
   */
  void download(String storagePath, HttpServletRequest request, HttpServletResponse response);


}
